<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>POSTORDER</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
	 <style>
		 .img{
			 width: 200px;
			 height: 200px;
			 object-fit: cover;
		 }
		 .preview {
			 cursor: pointer;
		 }
		 .preview-container {
			 position: fixed;
			 top: 0;
			 bottom: 0;
			 left: 0;
			 right: 0;
			 background-color: rgba(0, 0, 0, 0.6);
			 display: flex;
			 align-items: center;
			 justify-content: center;
			 cursor: pointer;
		 }
		 .preview-container .pic {
			 max-width: 90%;
			 max-height: 90%;
			 min-width: 5%;
			 min-height: 5%;
			 object-fit: contain;
		 }
	 </style>

 </head>
 <body>
		<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="${action}" tiptype="6">
					<input id="id" name="id" type="hidden" value="${postorderPage.id }"/>
		<table style="width: 99%;" cellpadding="0" cellspacing="1" class="formtable">
					<tr>
						<td align="right">
							<label class="Validform_label">
								商品名称:
							</label>
						</td>
						<td class="value">
						    <input id="pocode" name="pocode" type="text" maxlength="30" style="width: 150px"  ignore="ignore"  value='${commodity.commodityname}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">商品名称</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								交易商名称:
							</label>
						</td>
						<td class="value">
						    <input id="potradername" name="potradername" type="text" maxlength="150" style="width: 150px"  ignore="ignore"  value='${postorderPage.potradername}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易商名称</label>
						</td>
					</tr>
					<tr>
						 <td align="right">
							<label class="Validform_label">
								交易模式:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="trademodeid" type="list"  datatype="n"  typeGroupCode="TRADEMODE"   defaultVal="${postorderPage.trademodeid}" hasLabel="false"  title="交易模式" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易模式</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								买卖方向：
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="direction" type="list"  typeGroupCode="DIRECTION"   defaultVal="${postorderPage.direction}" hasLabel="false"  title="B买S卖" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">买卖方向</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								挂单价格(元):
							</label>
						</td>
						<td class="value">
						    <input id="poprice" name="poprice" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.poprice}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">挂单价格</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								挂单数量(吨):
							</label>
						</td>
						<td class="value">
						    <input id="poquantity" name="poquantity" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.poquantity}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">挂单数量</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								价格类型:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="pricetype" type="list"  typeGroupCode="JIAGLX"   defaultVal="${postorderPage.pricetype}" hasLabel="false"  title="价格类型" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">价格类型</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								挂单时间:
							</label>
						</td>
						<td class="value">
									  <input id="potime" name="potime" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.potime}' type="date" pattern="yyyy-MM-dd"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">挂单时间</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								交易状态:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="postatus" type="list"  typeGroupCode="POSTORDERSTATUS"   defaultVal="${postorderPage.postatus}" hasLabel="false"  title="挂单交易状态" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易状态</label>
						</td>
							<td align="right">
							<label class="Validform_label">
								交收省市:
							</label>
						</td>
						<td class="value">
						    <input id="delivercity" name="delivercity" type="text" maxlength="20" style="width: 150px"  ignore="ignore"  value='${region.fullname}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交收省市</label>
						</td>
					</tr>
					<c:if test="${postorderPage.trademodeid==3}">
						<tr>
							<td align="right">
								<label class="Validform_label">
									起订量(吨):
								</label>
							</td>
							<td class="value">
								<input id="mintradeqty" name="mintradeqty" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.mintradeqty}'/>
								<span class="Validform_checktip"></span>
								<label class="Validform_label" style="display: none;">起订量(吨)</label>
							</td>
							<td align="right">
								<label class="Validform_label">
									最少交易量(吨):
								</label>
							</td>
							<td class="value">
							    <input id="mintradeqty" name="mintradeqty" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.mintradeqty}'/>
								<span class="Validform_checktip"></span>
								<label class="Validform_label" style="display: none;">最少交易量</label>
							</td>
						</tr>
					</c:if>
					<tr class="forVerify" style="display:none;">
						<td align="right">
							<label class="Validform_label">
								类别:
							</label>
						</td>
						<td class="value">
							<input id="checklocaltion" name="checklocaltion" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${commodity.varietyname}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">类别</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								产地:
							</label>
						</td>
						<td class="value">
							<input id="inquirysheet" name="inquirysheet" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${chdregion.fullname}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">产地</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								矿别:
							</label>
						</td>
						<td class="value">
							<input id="minetype" name="minetype" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.minetype}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">矿别</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								品名:
							</label>
						</td>
						<td class="value">
							<input id="productname" name="productname" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.productname}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">品名</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								成交模式:
							</label>
						</td>
						<td class="value" colspan="3">
							<t:dictSelect field="dealmode" type="list"  typeGroupCode="DEALMODE"   defaultVal="${postorderPage.dealmode}" hasLabel="false"  title="成交模式" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">成交模式</label>
						</td>
					</tr>
					 <tr>
						<td align="right">
							<label class="Validform_label">
								交收开始日期:
							</label>
						</td>
						<td class="value">
									  <input id="deliverstartdate" name="deliverstartdate" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.deliverstartdate}' type="date" pattern="yyyy-MM-dd"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交收开始日期</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								交收结束日期:
							</label>
						</td>
						<td class="value">
									  <input id="deliverenddate" name="deliverenddate" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.deliverenddate}' type="date" pattern="yyyy-MM-dd"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交收结束日期</label>
						</td>
					</tr>
					<!-- <tr>
						<td align="right">
							<label class="Validform_label">
								结算方式:
							</label>
						</td>
						<td class="value">
						    <input id="settletype" name="settletype" type="text" maxlength="20" style="width: 150px"  ignore="ignore"  value='${postorderPage.settletype}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">结算方式</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								付款方式:
							</label>
						</td>
						<td class="value">
						    <input id="paymenttype" name="paymenttype" type="text" maxlength="20" style="width: 150px"  ignore="ignore"  value='${postorderPage.paymenttype}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">付款方式</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								结算开始日期:
							</label>
						</td>
						<td class="value">
									  <input id="settlestartdate" name="settlestartdate" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.settlestartdate}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">结算开始日期</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								结算结束日期:
							</label>
						</td>
						<td class="value">
									  <input id="settleenddate" name="settleenddate" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.settleenddate}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">结算结束日期</label>
						</td>
					</tr>-->
						<c:if test="${postorderPage.trademodeid==1}">
					<tr>
						<td align="right">
							<label class="Validform_label">
								交易有效开始日期:
							</label>
						</td>
						<td class="value">
									  <input id="validstartdate" name="validstartdate" type="text" style="width: 150px"  class="Wdate  dataedits" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.validstartdate}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易有效开始日期</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								交易有效结束日期:
							</label>
						</td>
						<td class="value">
									  <input id="validenddate" name="validenddate" type="text" style="width: 150px"  class="Wdate  dataedits" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.validenddate}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">交易有效结束日期</label>
						</td>
					</tr>
						</c:if>
					<c:if test="${postorderPage.trademodeid==2 || postorderPage.trademodeid==3}">
					<tr>
						<td align="right">
							<label class="Validform_label">
								竞价开场时间:
							</label>
						</td>
						<td class="value">
									  <input id="bidstarttime" name="bidstarttime" type="text" style="width: 150px"  class="Wdate  dataedits" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.bidstarttime}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">竞价开场时间</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								竞价结场时间:
							</label>
						</td>
						<td class="value">
									  <input id="bidendtime" name="bidendtime" type="text" style="width: 150px"  class="Wdate  dataedits" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  ignore="ignore" value='<fmt:formatDate value='${postorderPage.bidendtime}' type="date" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">竞价结场时间</label>
						</td>
					</tr>
					</c:if>
					<!--<tr>
						<td align="right">
							<label class="Validform_label">
								竞价倒计时:
							</label>
						</td>
						<td class="value">
						    <input id="bidcountdown" name="bidcountdown" type="text" maxlength="19" style="width: 150px"  datatype="n"  ignore="ignore"  value='${postorderPage.bidcountdown}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">竞价倒计时</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								冻结保证金金额:
							</label>
						</td>
						<td class="value">
						    <input id="pomargin" name="pomargin" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.pomargin}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">冻结保证金金额</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								冻结交易费金额:
							</label>
						</td>
						<td class="value">
						    <input id="potradefee" name="potradefee" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.potradefee}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">冻结交易费金额</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								备注:
							</label>
						</td>
						<td class="value">
						    <input id="note" name="note" type="text" maxlength="3000" style="width: 150px"  ignore="ignore"  value='${postorderPage.note}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">备注</label>
						</td>
					</tr>-->
					<!--<tr>
						<td align="right">
							<label class="Validform_label">
								最新价格:
							</label>
						</td>
						<td class="value">
						    <input id="newpoprice" name="newpoprice" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.newpoprice}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">最新价格</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								最低团购成交量:
							</label>
						</td>
						<td class="value">
						    <input id="minvolumeqty" name="minvolumeqty" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.minvolumeqty}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">最低团购成交量</label>
						</td>
					</tr>

					<tr>
						<td align="right">
							<label class="Validform_label">
								加价增幅:
							</label>
						</td>
						<td class="value">
						    <input id="jiajzf" name="jiajzf" type="text" maxlength="19" style="width: 150px"  ignore="ignore"  value='${postorderPage.jiajzf}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">加价增幅</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								倒计时分钟数:
							</label>
						</td>
						<td class="value">
						    <input id="daojsfzs" name="daojsfzs" type="text" maxlength="19" style="width: 150px"  ignore="ignore"  value='${postorderPage.daojsfzs}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">倒计时分钟数</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								保证金类型:
							</label>
						</td>
						<td class="value">
						    <input id="bondtype" name="bondtype" type="text" maxlength="1" style="width: 150px"  ignore="ignore"  value='${postorderPage.bondtype}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">保证金类型</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								保证金额:
							</label>
						</td>
						<td class="value">
						    <input id="bond" name="bond" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.bond}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">保证金额</label>
						</td>
					</tr>
					--><!-- <tr>
						<td align="right">
							<label class="Validform_label">
								ispublic:
							</label>
						</td>
						<td class="value">
						    <input id="ispublic" name="ispublic" type="text" maxlength="1" style="width: 150px"  ignore="ignore"  value='${postorderPage.ispublic}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">ispublic</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								检测地点:
							</label>
						</td>
						<td class="value">
						    <input id="checklocaltion" name="checklocaltion" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.checklocaltion}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">检测地点</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								检测机构:
							</label>
						</td>
						<td class="value">
						    <input id="checkinstitution" name="checkinstitution" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.checkinstitution}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">检测机构</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								检测标准:
							</label>
						</td>
						<td class="value">
						    <input id="checkstandard" name="checkstandard" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.checkstandard}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">检测标准</label>
						</td>
					</tr>-->
					<!-- <tr>
						<td align="right">
							<label class="Validform_label">
								品质证书:
							</label>
						</td>
						<td class="value">
						    <input id="qualificate" name="qualificate" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.qualificate}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">品质证书</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								产品图片:
							</label>
						</td>
						<td class="value">
						    <input id="productimg" name="productimg" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.productimg}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">产品图片</label>
						</td>
					</tr> -->

					<!-- <tr>
						<td align="right">
							<label class="Validform_label">
								是否采用价格指数:
							</label>
						</td>
						<td class="value">
						    <input id="ispriceindex" name="ispriceindex" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.ispriceindex}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">是否采用价格指数</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								指数类型:
							</label>
						</td>
						<td class="value">
						    <input id="priceindextype" name="priceindextype" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.priceindextype}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">指数类型</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								指数浮动类型:
							</label>
						</td>
						<td class="value">
						    <input id="floattype" name="floattype" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.floattype}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">指数浮动类型</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								币种:
							</label>
						</td>
						<td class="value">
						    <input id="currency" name="currency" type="text" maxlength="10" style="width: 150px"  ignore="ignore"  value='${postorderPage.currency}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">币种</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								询价单:
							</label>
						</td>
						<td class="value">
						    <input id="inquirysheet" name="inquirysheet" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.inquirysheet}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">询价单</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								客户联系表:
							</label>
						</td>
						<td class="value">
						    <input id="customerform" name="customerform" type="text" maxlength="100" style="width: 150px"  ignore="ignore"  value='${postorderPage.customerform}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">客户联系表</label>
						</td>
					</tr> -->

					<c:if test="${postorderPage.trademodeid==2 || postorderPage.trademodeid==3}">
					<tr class="forVerify" style="display:none;">
						<td align="right">
							<label class="Validform_label">
								幅度(元):
							</label>
						</td>
						<td class="value" colspan="3">
							<input id="jiajzf" name="jiajzf" type="text" maxlength="100" style="width: 350px"  ignore="ignore"  value='${postorderPage.jiajzf}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">幅度(元):</label>
						</td>
					</tr>
					</c:if>



					<tr>
						<td align="right">
							<label class="Validform_label">
								质量标准:
							</label>
						</td>
						<td class="value"  colspan="3" >
						  	 	<textarea id="termxml" style="height:auto;width:95%;" rows="6" name="termxml"  ignore="ignore" >${vecppostorder.commodityquality}</textarea>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">质量标准</label>
						</td>
					</tr>
					<%-- <c:if test="${postorderPage.trademodeid==3 || postorderPage.trademodeid == 2}">
					<tr>
						<td align="right">
							<label class="Validform_label">
								预告标题:
							</label>
						</td>
						<td class="value" colspan="3">
							<input id="announTitle" name="announTitle" type="text" maxlength="100" style="width: 350px"  ignore="ignore"  value='${postorderPage.announTitle}'/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">起订量(吨)</label>

						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								预告公告:
							</label>
						</td>
						<td class="value" colspan="3">
							<script type="text/javascript"  charset="utf-8" src="plug-in/ueditor/ueditor.config.js"></script>
							<script type="text/javascript"  charset="utf-8" src="plug-in/ueditor/ueditor.all.min.js"></script>
	                           <textarea name="pmygContent" id="pmygContent" style="width: 650px;height:300px">${postorderPage.pmygContent }</textarea>
	                               	<script type="text/javascript">
							        	var pmygContent_editor = UE.getEditor('pmygContent');
									</script>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">预告公告</label>
						</td>
					</tr>

				</c:if> --%>
			    	<%--<tr  class="forVerify" style="display:none;">
						<td align="right">
							<label class="Validform_label">
								产品视频:
							</label>
						</td>
						<td class="value" colspan="3">
							<video id="productvideo" src="${imageServerUrl}${postorderPage.productvideo}" controls="controls" autoplay="true" width="200px" height="150px">
                			</video>
						</td>
					</tr>--%>
					<!-- 品质证书 scp-->
					<tr class="forVerify" style="display:none;">
						<td align="right">
							<label class="Validform_label">
								品质证书:
							</label>
						</td>
						<td class="value" colspan="3">
				            <c:if test="${postorderPage.qualificate != null}">
							<img class="img preview"  src="${imageServerUrl}/${postorderPage.qualificate}" alt="品质证书"/>
							</c:if>
						</td>
					</tr>
					<!-- 产品图片 scp-->
					<%--<tr class="forVerify" style="display:none;">
						<td align="right">
							<label class="Validform_label">
								产品图片:
							</label>
						</td>
						<td class="value" colspan="3">
			              <c:if test="${postorderPage.productimg != null}">
			              <img class="img preview"  src="${imageServerUrl}/${postorderPage.productimg}" alt="产品图片"/>
						  </c:if>
						</td>
					</tr>--%>
			</table>
			<c:if test="${flags !='unvalid'}">
			<table style="margin-top:10px;width: 99%;" cellpadding="0" cellspacing="1" class="formtable">
			<input id="verifyflag" name="verifyflag" type="hidden" value="false"/>
				<script type="text/javascript">
					$(function () {

					var smid =  "${postorderPage.subtrademodeid}";
					if (smid == 2) {
						$("#countdown2").removeAttr("disabled");
					}
					$(".dataedits").removeAttr("disabled");
					$("#subtrademodeid").removeAttr("disabled");
						$("#subtrademodeid").removeAttr("disabled");
						$("#subtrademodeid").change(function() {
							var flag = $("#subtrademodeid option:selected").val();
							if (2==flag) {
								$("#countdown2").removeAttr("disabled");
							} else {
								$("#countdown2").attr("disabled","none");
							}
						})
					});




				</script>


				<c:if test="${postorderPage.trademodeid==2 || postorderPage.trademodeid==3}">
				<tr>
						<td align="right">
							<label class="Validform_label">
									限时/延时:
							</label>
						</td>
						<td class="value">
							<t:dictSelect field="subtrademodeid" id="subtrademodeid" type="list"  typeGroupCode="SUBTRADE"   defaultVal="${postorderPage.subtrademodeid}" hasLabel="false"  title="限时/延时" datatype="n" ></t:dictSelect>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">限时延时</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								延时时间:
							</label>
						</td>
						<td class="value">
							<t:dictSelect field="countdown2" id="countdown2" type="list"  typeGroupCode="COUNTDOWN2"   defaultVal="${postorderPage.countdown2}" hasLabel="false"  title="限时/延时" datatype="n" ></t:dictSelect>
							<label class="Validform_label" style="display: none;">延时时间</label>
						</td>
					</tr>
					</c:if>

				<tr>
						<td align="right">
							<label class="Validform_label">
								审核意见:
							</label>
						</td>
						<td class="value" colspan="3">
						  	<textarea id="verifynote" name="verifynote" style="height:auto;width:850px;" rows="6" ignore="ignore" value="${postorderPage.verifynote}">${postorderPage.verifynote}</textarea>
						</td>
					</tr>

			</table>
			</c:if>
		</t:formvalid>
		<script type="text/javascript">
			// 获取所有 .preview 元素
			let arrPic = document.querySelectorAll(".preview")
			for(let img of arrPic){
				img.addEventListener("click",() =>{
					//创建预览器
					let container = document.createElement("div");
					container.classList.add("preview-container");
					container.onclick = function() {
						container.remove();
					}
					//创建预览图片
					let innerImg = document.createElement("img");
					innerImg.src = img.src;
					innerImg.classList.add("pic");
					//绑定滚动事件
					container.onwheel = function (event) {
						const width = getComputedStyle(innerImg).width.slice(0,-2);
						const height = getComputedStyle(innerImg).height.slice(0,-2);
						if (event.deltaY > 0) {
							//向上滚动放大
							innerImg.style.width = parseInt(width) * 1.1 + "px";
							innerImg.style.height = parseInt(height) * 1.1 + "px";
						}else if (event.deltaY < 0) {
							//向下滚动缩小
							innerImg.style.width = parseInt(width) * 0.9 + "px";
							innerImg.style.height = parseInt(height) * 0.9 + "px";
						}
					}
					//将图片添加到预览器
					container.append(innerImg);
					//将预览器添加到 body 中
					document.body.append(container);
				})
			}
		</script>
 </body>
